import Layout from '@/layout'

const systemRouter = {
  path: '/platform',
  component: Layout,
  redirect: '/platform/user',
  name: 'platform',
  meta: { title: '平台管理', icon: 'home-o' },
  children: [{
    path: 'user',
    name: 'platformUser',
    component: () => import('@/views/upms/user'),
    meta: { title: '成员管理', icon: 'userManager' }
  }, {
    path: '/profile',
    name: 'platformProfile',
    hidden: true,
    component: () => import('@/views/upms/profile'),
    meta: { title: '个人中心', icon: 'userManager' }
  }, {
    path: 'user/import',
    name: 'platformUserImport',
    hidden: true,
    component: () => import('@/views/upms/userImport'),
    meta: { title: '用户批量导入', icon: 'userManager', activeMenu: '/platform/user' }
  }, {
    path: 'org',
    name: 'platformOrg',
    component: () => import('@/views/upms/organization'),
    meta: { title: '部门管理', icon: 'userManager' }
  }, {
    path: 'role',
    name: 'platformRole',
    component: () => import('@/views/upms/role'),
    meta: { title: '角色管理', icon: 'roleManager' }
  }, {
    path: 'permission',
    name: 'platformPermission',
    component: () => import('@/views/upms/menu'),
    meta: { title: '菜单管理', icon: 'menuManager' }
  }, {
    path: 'dataDict',
    name: 'dataDict',
    component: () => import('@/views/upms/dictionary/upmsDataDict'),
    meta: { title: '字典管理', icon: 'meunDataDict' }
  }]
}
export default systemRouter
